home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / bin / checkbox-gtk < prev    next >
Text File  |  2009-11-06  |  519b  |  18 lines

  1. #!/bin/bash
  2.  
  3. export XDG_CACHE_HOME=${XDG_CACHE_HOME:-$HOME/.cache}
  4. export CHECKBOX_DATA=${CHECKBOX_DATA:-$XDG_CACHE_HOME/checkbox}
  5. export CHECKBOX_SHARE=${CHECKBOX_SHARE:-/usr/share/checkbox}
  6. export CHECKBOX_OPTIONS="--log-level=debug --log=$CHECKBOX_DATA/checkbox.log"
  7.  
  8. if [ $CHECKBOX_DATA != '.' ]
  9. then
  10.     old_data=$HOME/.checkbox
  11.     if [ -d $old_data ] && [ ! -d $CHECKBOX_DATA ]
  12.     then
  13.         mv -f $old_data $CHECKBOX_DATA
  14.     fi
  15. fi
  16.  
  17. python $CHECKBOX_SHARE/run "$@" $CHECKBOX_SHARE/configs/$(basename $0).ini
  18.